package com.xinpu.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 价格表
 * </p>
 *
 * @author ayuan
 * @since 2021-05-17
 */
public class TPrice extends Model<TPrice> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    private String name;

    /**
     * 金额
     */
    private BigDecimal price;

    /**
     * 划线价
     */
    private BigDecimal vPrice;

    /**
     * 员工数量
     */
    private Integer num;

    /**
     * 有效时间
     */
    private Integer inTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getvPrice() {
        return vPrice;
    }

    public void setvPrice(BigDecimal vPrice) {
        this.vPrice = vPrice;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getInTime() {
        return inTime;
    }

    public void setInTime(Integer inTime) {
        this.inTime = inTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TPrice{" +
        "id=" + id +
        ", name=" + name +
        ", price=" + price +
        ", vPrice=" + vPrice +
        ", num=" + num +
        ", inTime=" + inTime +
        "}";
    }
}
